import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
//导入气泡相关样式和字体图标
import './assets/css/qipao.css'
import './assets/js/iconfont'
//导入rem.js
import './assets/js/rem'
import VueSocketIO from 'vue-socket.io'
// import SocketIO from "socket.io-client"
Vue.use(new VueSocketIO({
  debug: false,
  connection: 'https://www.zysir.com',
  vuex: {       // 不需要用到vuex这个可以不加
    store,
    actionPrefix: 'SOCKET_',
    mutationPrefix: 'SOCKET_'
  },
  options: {
    autoConnect: true //为false则需要手动链接
    //     forceNew: true,
  }
}))

// 导入vant ui库
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
